home *** CD-ROM | disk | FTP | other *** search
/ The Very Best of Atari Inside / The Very Best of Atari Inside 1.iso / mint / mntinc20 / stddef.h < prev    next >
C/C++ Source or Header  |  1992-05-15  |  906b  |  50 lines

  1. /*
  2.  * STDDEF.H    standard definitions
  3.  *    ansi draft sec 4.14
  4.  */
  5.  
  6. #ifndef _STDDEF_H
  7. #define _STDDEF_H
  8.  
  9. #ifndef _COMPILER_H
  10. #include <compiler.h>
  11. #endif
  12.  
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16.  
  17. #ifndef _SIZE_T
  18. #define _SIZE_T __SIZE_TYPEDEF__
  19. typedef _SIZE_T size_t;
  20. #endif
  21.  
  22. #ifndef _PTRDIFF_T
  23. #define _PTRDIFF_T __PTRDIFF_TYPEDEF__
  24. typedef _PTRDIFF_T ptrdiff_t;
  25. #endif
  26.  
  27. #ifndef _WCHAR_T
  28. #define _WCHAR_T __WCHAR_TYPEDEF__
  29. typedef _WCHAR_T wchar_t;
  30. #endif
  31.  
  32. /* A null pointer constant.  */
  33. #ifndef NULL
  34. #define NULL __NULL
  35. #endif
  36.  
  37. /* Offset of member MEMBER in a struct of type TYPE.  */
  38. #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
  39.  
  40. #ifndef EXIT_FAILURE
  41. #define    EXIT_FAILURE    (1)        /* failure return value for exit() */
  42. #define    EXIT_SUCCESS    (0)        /* success return value for exit() */
  43. #endif
  44.  
  45. #ifdef __cplusplus
  46. }
  47. #endif
  48.  
  49. #endif /* _STDDEF_H */
  50.